import Vue from 'vue'
import Router from 'vue-router'
import helloWorld from '@/components/helloWorld'
import homePage from '@/components/homePage'
import keyBoardDemo from '@/components/keyBoardDemo'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/helloWorld',
      name: 'helloWorld',
      component: helloWorld
    },
    {
      path: '/index',
      name: 'homePage',
      component: homePage
    },
    {
      path: '/',
      name: 'homePage',
      component: homePage
    },
    {
      path: '/keyBoardDemo',
      name: 'keyBoardDemo',
      component: keyBoardDemo
    }   
  ]
})
